load("//tools:defaults.bzl", "angular_jasmine_test", "ng_web_test_suite", "ts_project")

package(default_visibility = ["//visibility:public"])

ts_project(
    name = "render3_lib",
    testonly = True,
    srcs = glob(
        ["**/*.ts"],
        exclude = [
            "**/*_perf.ts",
            "domino.d.ts",
            "load_domino.ts",
            "is_shape_of.ts",
            "jit_spec.ts",
            "matchers.ts",
        ],
    ),
    deps = [
        ":matchers",
        "//:node_modules/rxjs",
        "//:node_modules/zone.js",
        "//packages/animations",
        "//packages/animations/browser",
        "//packages/animations/browser/testing",
        "//packages/common",
        "//packages/compiler",
        "//packages/core",
        "//packages/core/primitives/signals",
        "//packages/core/rxjs-interop",
        "//packages/core/src/di/interface",
        "//packages/core/src/interface",
        "//packages/core/src/util",
        "//packages/core/testing",
        "//packages/platform-browser",
        "//packages/platform-browser/animations",
        "//packages/platform-browser/testing",
        "//packages/private/testing",
    ],
)

ts_project(
    name = "matchers",
    testonly = True,
    srcs = [
        "is_shape_of.ts",
        "matchers.ts",
    ],
    deps = [
        "//packages/core",
    ],
)

ts_project(
    name = "domino",
    testonly = True,
    srcs = [
        "load_domino.ts",
    ],
    deps = [
        "//packages/common",
        "//packages/compiler",
        "//packages/platform-server",
        "//packages/platform-server:bundled_domino_lib",
    ],
)

angular_jasmine_test(
    name = "render3",
    data = [
        ":domino",
        ":render3_lib",
    ],
)

ng_web_test_suite(
    name = "render3_web",
    deps = [
        ":render3_lib",
    ],
)
